#define _CRT_SECURE_NO_WARNINGS 1
#include"map.h"
#include"set.h"

void test_set()
{
	set<int> s;

	/*set<int>::reverse_iterator rit = s.rbegin();
	while (rit != s.rend())
	{
		cout << *rit << " ";
		++rit;
	}*/
	cout << endl;

	s.insert(3);
	s.insert(2);
	s.insert(1);
	s.insert(5);
	s.insert(3);
	s.insert(6);
	s.insert(4);
	s.insert(9);
	s.insert(7);

	const set<int> s1 = s;

	set<int>::const_reverse_iterator rit = s1.rbegin();
	while (rit != s1.rend())
	{
		cout << *rit << " ";
		++rit;
	}
	cout << endl;
}

int main()
{
	test_set();
	return 0;
}